/* ===================================================
*  Facebook Like Box plugin
*  Version 0.0.1
*  Created By = Imam Firmansyah
*  Website = http://boelshare.blogspot.com
*  ===================================================
*/

(function(){
	if(typeof flikebox == 'undifined'){
		flikebox = {};
	}
	if(flikebox.url){
		fURL = flikebox.url;
	} else {
		fURL = location.href;
	}	
	if(flikebox.width){
		fWidth = flikebox.width;
	} else {
		fWidth = "292";
	}
	if(flikebox.height){
		fHeight = flikebox.height;
	} else {
     if(flikebox.stream=="true"){
       fHeight = "590";
     } else {
       fHeight = "290";
     }
	}
	if(flikebox.colorScheme){
		fColorscheme = flikebox.colorScheme;
	} else {
		fColorscheme = "light";
	}
	if(flikebox.showFaces){
		fShowfaces = flikebox.showFaces;
	} else {
		fShowfaces = "true";
	}
	if(flikebox.borderColor){
		fborderColor = '=' + flikebox.borderColor;
	} else {
		fborderColor = "";
	}
	if(flikebox.stream){
		fStream = flikebox.stream;
	} else {
		fStream = "true";
	}
	if(flikebox.header){
		fHeader = flikebox.header;
	} else {
		fHeader = "true";
	}
	
	var html = '';
	html += '<iframe src="//www.facebook.com/plugins/likebox.php?href=' + fURL + '&amp;width=' + fWidth + '&amp;height=' + fHeight + '&amp;colorscheme=' + fColorscheme + '&amp;show_faces=' + fShowfaces + '&amp;border_color' + fborderColor + '&amp;stream=' + fStream + '&amp;header' + fHeader + '" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:' + fWidth + 'px; height:' + fHeight + 'px;" allowTransparency="true"></iframe>';
	html += '<script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script><script type="text/javascript">try {var pageTracker = _gat._getTracker("UA-26487870-1");pageTracker._trackPageview();} catch(err) {}</script>';
	document.write(html);	
})();